package com.ninth.element.generated.number.property;

import com.ninth.element.generated.number.NumberStarterConstants;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Lettuce是一个高性能基于Java编写的Redis驱动框架
 *
 * @author LiYUJi
 **/
@ConfigurationProperties(prefix = NumberStarterConstants.NUMBER_REDIS_LETTUCE_PREFIX)
public class RedisLettuceWithNumberProperty {

    /**
     * 超时时间
     */
    private Long commandTimeout = 2L;
    /**
     * 关闭时间
     */
    private Long shutdownTimeout = 100L;

    public Long getCommandTimeout() {
        return commandTimeout;
    }

    public void setCommandTimeout(Long commandTimeout) {
        this.commandTimeout = commandTimeout;
    }

    public Long getShutdownTimeout() {
        return shutdownTimeout;
    }

    public void setShutdownTimeout(Long shutdownTimeout) {
        this.shutdownTimeout = shutdownTimeout;
    }
}
